<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .outer {
        width: 200px;
        height: 200px;
        border: 2px solid black;
        margin: 0 auto;
        margin-top: 100px;
      }
      .inner {
        width: 200px;
        height: 200px;
        background-color: rgba(135, 206, 235, 0.5);
        transform: scale(1.5);
      }
      .item {
        font-size: 12px;
      }
      /* scale 缩放也只能使用行内块或块元素，行内元素不能使用 */
      .item1 {
        font-size: 12px;
        transform: scale(0.5);
        display: inline-block;
      }
    </style>
  </head>
  <body>
    <div class="outer">
      <div class="inner">2D变化</div>
    </div>
    <span class="item">缩放到10px的文字</span>
    <span class="item1">缩放到10px的文字</span>
  </body>
</html>
